package com.mbti.youmore.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName t_post
 */
@TableName(value ="t_post")
@Data
public class Post implements Serializable {
    /**
     * 帖子ID
     */
    @TableId
    private Integer id;

    /**
     * 用户ID
     */
    private Integer userId;

    /**
     * 帖子内容
     */
    private String content;

    /**
     * 发帖时间
     */
    private Date postTime;

    /**
     * 点赞数量
     */
    private Integer likeNum;

    /**
     * 帖子图片
     */
    private String img;

    /**
     * 帖子定位
     */
    private String location;

    /**
     * 艾特好友id
     */
    private Integer friendId;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    public Post(Integer userId, String desc, String img, String location, Integer friendId) {
        this.userId = userId;
        this.content = desc;
        this.img = img;
        this.location = location;
        this.friendId = friendId;
    }
}